package com.ccy.product.productconsumer;

public class Consumer extends Thread{

    private Stock stock;

    public Consumer(String name,Stock stock){
        super(name);
        this.stock = stock;
    }

    @Override
    public void run() {
        while(true){

            stock.consumer();;
        }
    }
}
